package com.hkts.beltweigher.master.service.serviceimpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hkts.beltweigher.master.entity.HktsHeatDictionaries;
import com.hkts.beltweigher.master.mapper.HktsHeatDictionariesMapper;
import com.hkts.beltweigher.master.service.IHktsHeatDictionariesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author hml
 * @since 2024-04-10
 */
@Service
@Transactional
public class HktsHeatDictionariesServiceImpl extends ServiceImpl<HktsHeatDictionariesMapper, HktsHeatDictionaries> implements IHktsHeatDictionariesService {


    @Autowired
    private HktsHeatDictionariesMapper hktsHeatDictionariesMapper;

    @Override
    public IPage<HktsHeatDictionaries> selectPage(Page<HktsHeatDictionaries> page, HktsHeatDictionaries hktsHeatDictionaries) {
        QueryWrapper<HktsHeatDictionaries> query = Wrappers.query();
        return hktsHeatDictionariesMapper.selectPage(page, query);
    }


    @Override
    public List<HktsHeatDictionaries> selectList(HktsHeatDictionaries hktsHeatDictionaries) {
        QueryWrapper<HktsHeatDictionaries> query = Wrappers.query();
        return hktsHeatDictionariesMapper.selectList(query);
    }


}
